package com.bookstore.dao;

import com.bookstore.bean.TradeItem;

import java.util.Collection;
import java.util.Set;

/**
 * Created by Admin on 2016/8/12.
 */
public interface TradeItemDao {
    /**
     * 批量保存TradeItem对象
     * @param items
     */
     void batchSave(Collection<TradeItem> items);

    /**
     * tradeId 获取和其关联的TradeItem 的集合
     * @param tradeId
     * @return
     */
     Set<TradeItem> getTradeItemsWithTradeId(Integer tradeId);
}
